package com.gl.saasservice.repository;

import com.gl.saasservice.entity.AppUser;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;

import java.util.List;

public interface UserRepository extends PagingAndSortingRepository<AppUser, String>, JpaSpecificationExecutor<AppUser> {

	List<AppUser> findByEnterpriseUserId(String enterpriseUserId);

	AppUser findByName(String name);

	AppUser findByPhone(String phone);



	int countByStatusIn(List<Integer> statusList);




}
